// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 修改评分管理 PUT /api/score */
export async function editUsingPut2(
  body: API.pingfenguanliduixiang,
  options?: { [key: string]: any }
) {
  return request<API.R>('/api/score', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 新增评分管理 POST /api/score */
export async function addUsingPost2(
  body: API.pingfenguanliduixiang,
  options?: { [key: string]: any }
) {
  return request<API.R>('/api/score', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 删除评分管理 DELETE /api/score/${param0} */
export async function removeUsingDelete1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.removeUsingDELETE1Params,
  options?: { [key: string]: any }
) {
  const { ids: param0, ...queryParams } = params
  return request<API.R>(`/api/score/${param0}`, {
    method: 'DELETE',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 获取评分管理详细信息 GET /api/score/${param0} */
export async function getInfoUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getInfoUsingGETParams,
  options?: { [key: string]: any }
) {
  const { id: param0, ...queryParams } = params
  return request<API.R>(`/api/score/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 查询评分管理列表 GET /api/score/list */
export async function listUsingGet3(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listUsingGET3Params,
  options?: { [key: string]: any }
) {
  return request<API.MyPageVoListpingfenguanliduixiang>('/api/score/list', {
    method: 'GET',
    params: {
      ...params,
      params: undefined,
      ...params['params'],
    },
    ...(options || {}),
  })
}
